package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-26
 */
@Data
@ApiModel("告警日志")
@TableName("alert_log")
public class AlertLog implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("告警日志的唯一标识")
    private Integer id;

    @ApiModelProperty("关联的规则ID")
    private Integer ruleId;

    @ApiModelProperty("关联的设备ID")
    private Integer deviceId;

    @ApiModelProperty("告警日志的状态")
    private Integer state;

    @ApiModelProperty("告警的详细信息，以字节数组形式存储")
    private byte[] details;

    @ApiModelProperty("告警日志记录的时间")
    private LocalDateTime timeLogged;
}
